var http = require("http");
var router = require("./router");

function onRequest(request, response) {

  router.route(request, response);
//  response.write("Hello World");
  response.end();
}

http.createServer(onRequest).listen(8888);

console.log("Server has started.");
